import React, { Component } from 'react'
import SurveyImg from '../assets/images/lxl/survey.png'
import { SurImg } from './StyledSurvey'
import { NavBar, Icon } from 'antd-mobile';
import { Tabs } from 'antd-mobile';
import { StickyContainer } from 'react-sticky';

class Survey extends Component {
     tabs = [
        { title: '收到的调查', key: 't1' },
        { title: '发出的调查', key: 't2' },
      ];
    state = {
        selectedTab: 'Send',
        hidden: false,
        fullScreen: false,
    };
    render() {
        return (
            <div>
                <NavBar
                    mode="dark"
                    icon={<Icon type="left" />}
                    onLeftClick={() => this.props.history.goBack()}
                >调查</NavBar>

                <StickyContainer>
                    <Tabs tabs={this.tabs}
                        initialPage={'t1'}
                    >
                        <SurImg>
                            <img src={SurveyImg} alt="" />
                        </SurImg>
                    </Tabs>
                </StickyContainer>

            </div>
        )
    }
}


export default Survey